//
//  PKRequestManager.h
//  PianKe
//
//  Created by lanou on 15/12/22.
//  Copyright © 2015年 JasperSong. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_ENUM(NSInteger, RequestType){
    POST,
    GET,
};

@interface PKRequestManager : NSObject

+ (void)requestWithUrl:(NSString *)urlstring
               parmDic:(NSDictionary *)parmDic
                method:(RequestType)method
       succeedWithData:(void(^)(NSData *data))block
       failedWithError:(void(^)(NSError *connectionError))error;


@end
